package cn.xbtop.blog.utils;

import java.util.UUID;

/**
 * UUID工具类
 * @author Mxb
 * @version 1.0
 * @date 2020/4/13 11:06
 */
public class UUIDUtils {

    public static String getUUID(){
        String s = UUID.randomUUID().toString().replace("-", "").toUpperCase();
        return s;
    }

    public static void main(String[] args) {
        String uuid = getUUID();

        System.out.println(uuid);
        System.out.println(uuid.length());

    }
}
